import Vue from 'vue'
import Router from 'vue-router'
import home from '@/components/home'
import login from '@/components/login'
import reg from '@/components/reg'
import forgetPwd from '@/components/forget'
import message from '@/components/message'
import fav from '@/components/fav'
import user from '@/components/user/user'

Vue.use(Router)

export default new Router({
	/*mode: 'history',*/
	routes: [{
			path: '/',
			name: 'rootPa',
			redirect: '/home',
		},
		{
			path: '/home',
			name: 'home',
			component: home
		},

		{
			path: '/login',
			name: 'login',
			component: login
		},
		{
			path: '/reg',
			name: 'reg',
			component: reg
		},
		{
			path: '/forget',
			name: 'forgetPwd',
			component: forgetPwd
		},
		{
			path: '/message',
			name: 'message',
			component: message
		}, {
			path: '/fav',
			name: 'fav',
			component: fav
		}, {
			path: '/user',
			name: 'user',
			component: user
		}

	]
})